% Removing directories from matlab search path.
p=genpath([pwd filesep '..']);
p= strread(p,'%s','delimiter',';');

try
    for i= 1:numel(p)    
        if isempty(strfind(p{i}, '.svn'))
            rmpath(p{i})
            disp(p{i})
        end
    end
    clear i p
catch ex
    disp(ex)
end

disp('DHAQTOOL has been succesfully uninstalled.')